package cenyol.com;

import cenyol.com.ChatServer.WebsocketChatServer;
/**
 * Created by cenyol on 10/07/2017.
 * 程序入口
 */
public class Main {
    public static void main(String[] args) throws Exception {
        int port;
        if (args.length > 0) {
            port = Integer.parseInt(args[0]);
        } else {
            port = 8080;
        }
        new WebsocketChatServer(port).run();
    }
}
